<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="description" content="">
	<meta name="author" content="">

	<title>选课系统-老师-添加课程</title>

	<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
	<!-- Custom styles for this template -->
	<link th:href="@{/css/dashboard.css}" rel="stylesheet">


</head>

<body>
<div th:replace="~{commons::topbar}"></div>

	<div class="container-fluid">
		<div class="row">
			<div th:replace="~{commons::sidebar(active='mycourse')}"></div>

			<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">

				<form th:action="@{/tea/addCourse}" method="post">
					<div class="form-group">
						<label>课程名称</label>
						<input type="text" class="form-control" name="courseName" th:placeholder="课程名称">
					</div>
					<div class="form-group">
						<label>开课学院</label>
						<select class="form-control" name="collegeId">
							<option th:each="college:${colleges}" th:text="${college.getCollegeName()}" th:value="${college.getCollegeId()}" th:selected="${college.getCollegeId()==teaCollegeId}"></option>
						</select>
					</div>
					<div class="form-group">
						<label>学分</label>
						<input type="number" class="form-control" name="courseScore" th:placeholder="学分">
					</div>
					<div class="form-group">
						<label>课程详情</label>
						<input type="text" class="form-control" name="description" th:placeholder="课程详情">
					</div>
					<div class="form-group">
						<label>开课时间</label>
						<input type="text" class="form-control" name="schedule" th:placeholder="开课时间">
					</div>
					<div class="form-group">
						<label>课程人数</label>
						<input type="number" class="form-control" name="stock" th:placeholder="课程人数">
					</div>
					<button type="submit" class="btn btn-primary">添加</button>
				</form>
			</main>
		</div>
	</div>



</body>

</html>